﻿@model RTW.OA.Models.official_document
@{

    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}
@section styles{

}
<div id="dMain">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox" style="margin-bottom: 0px;">
            <div class="ibox-title">
                <h4>公文详情 </h4>
            </div>
            <div class="ibox-content">
                <div class="from-content">
                    <dl>
                        <dt>公文标题</dt>
                        <dd>
                            @Html.DisplayFor(m => m.SUBJECT, new { htmlAttributes = new { @class = "input normal form-control" } })
                        </dd>
                    </dl>
                    <dl>
                        <dt>正文</dt>
                        <dd>
                            @Html.Raw(Model.BODY)
                        </dd>
                    </dl>
                    <dl>
                        <dt>紧急程度</dt>
                        <dd>
                            @Html.DisplayFor(m => m.URGENT_LEVEL)
                        </dd>
                    </dl>
                    <dl>
                        <dt>秘密等级</dt>
                        <dd>
                            @Html.DisplayFor(m => m.SECRET_LEVEL)
                        </dd>
                    </dl>
                    <dl>
                        <dt>发文页数</dt>
                        <dd>
                            @Html.DisplayFor(m => m.DOC_PAGE_COUNT)
                        </dd>
                    </dl>
                    <dl>
                        <dt>拟稿单位</dt>
                        <dd>
                            @Html.DisplayFor(m => m.DRAFT_UNIT)
                        </dd>
                    </dl>
                    <dl>
                        <dt>拟稿人</dt>
                        <dd>
                            @Html.DisplayFor(m => m.DRAFT_AUTHOR)
                        </dd>
                    </dl>
                    <dl>
                        <dt>主送单位</dt>
                        <dd>
                            @Html.DisplayFor(m => m.RECEIVE_UNITS_TEXT)
                        </dd>
                    </dl>
                    <dl>
                        <dt>接收人</dt>
                        <dd>
                            @Html.DisplayFor(m => m.RECEIVERS_TEXT)
                        </dd>
                    </dl>
                    <dl>
                        <dt>主送</dt>
                        <dd>
                            @Html.DisplayFor(m => m.RED_HEAD_RECEIVE_UNITS)
                        </dd>
                    </dl>
                    <dl>
                        <dt>抄送</dt>
                        <dd>
                            @Html.DisplayFor(m => m.RED_HEAD_CC)
                        </dd>
                    </dl>
                    <dl>
                        <dt>文件类别</dt>
                        <dd>
                            @Html.DisplayFor(m => m.DOC_CATEGORY)
                        </dd>
                    </dl>
                    <dl>
                        <dt>使用模板</dt>
                        <dd>
                            @Html.DisplayFor(m => m.TEMPLATE)
                        </dd>
                    </dl>
                    @if (!string.IsNullOrEmpty(Model.ATTACHMENT))
                    {
                        <dl>
                            <dt>附件</dt>
                            <dd>
                                <a href="javascript:POBrowser.openWindowModeless('/document/send/officeview?filePath=@Model.ATTACHMENT', 'width=1200px;height=800px;');">在线预览</a>
                            </dd>
                        </dl>
                    }
                    <dl>
                        <dt>状态</dt>
                        <dd>
                            @switch (Model.STATUS)
                            {
                                case 0:
                                    <span style="color:green;">已拟稿</span>
                                    break;
                                case 1:
                                    <span style="color:red;"> 请求领导批示 </span>
                                    break;
                                case 2:
                                    <span style="color:red;">批示未通过</span>
                                    break;
                                case 3:
                                    <span style="color:green;">领导批示通过</span>
                                    break;
                                case 4:
                                    <span style="color:red;">请求取文号</span>
                                    break;
                                case 5:
                                    <span style="color:green;">已取文号</span>
                                    break;
                                case 6:
                                    <span style="color:green;">自己已签章</span>
                                    break;
                                case 7:
                                    <span style="color:red;">请求领导签章</span>
                                    break;
                                case 8:
                                    <span style="color:green;">领导已签章</span>
                                    break;
                                case 9:
                                    <span style="color:red;">已发送接收人</span>
                                    break;
                                case 10:
                                    <span style="color:green;">已归档</span>
                                    break;
                                default:
                                    <span></span>
                                    break;
                            }
                        </dd>
                    </dl>
                </div>
                <div class="from-footer">
                    <div class="btn-wrap" style="position: fixed;">
                        <a class="btn btn-sm btn-warning radius" onclick="parent.subcloseTab('1303')">
                            <i class="iconfont icon-fanhui"></i>
                            返 回
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@section scripts{
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/pageoffice/js/pageoffice.js")" id="po_js_main"></script>
    <script src="@Url.Content("~/Content/JS/common/WdatePicker/WdatePicker.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/jquery/Validform_v5.3.2_min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/artdialog/dialog-plus-min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/webuploader/webuploader.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.config.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.all.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content(" ~/Content/editor/lang/zh-cn/zh-cn.js")"></script>
    @*<script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>*@

    <script src="@Url.Content("~/Content/JS/common/from.js")"></script>
    <script>
        $(function () {
            //初始化表单验证
            $("#evectionfrom").initValidform();

        });
        function savefrom() {
            $("#evectionfrom").submit();
        }
    </script>

}